package AbstractFactoryPattern;

public class ShapeFactory extends AbstractFacoty{
    @Override
    Color getColor(String color) {
        return null;
    }

    @Override
    Shape getShape(String type) {
        if (type.equals("circle")) {
            return new Circle();
        } else if (type.equals("rectangle")) {
            return new Rectangle();
        }else{
            return new DefaultShape();
        }
    }
}
